<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="script/jquery.js"></script>
		<script type="text/javascript" src="js/mui.js"></script>
		<script type="text/javascript" src="script/bootstrap.min.js"></script>
		<script type="text/javascript" src="script/Validform_v5.3.2_min.js"></script>
		<script type="text/javascript" src="script/layer.mobile/layer.js"></script>
	    <script type="text/javascript" src="script/TouchSlide.1.1.js"></script>
	</head>
	
	<body>
		<div style="margin-top: 400px;margin-left:200px;font-size: 50px;">
			<form>
				设置昵称：<input style="border: 1px solid #ccc; padding: 7px 7px;border-radius: 3px; padding-left:5px;" type="text" class="newNickname" id="nickname"/>
				<input style="font-size: 20px;" type="button" value="确定" class="btn btn-danger btn-block" id="uploadNickname"/>  
			</form>
		</div>
		<script>
			$('#uploadNickname').click(function(){
				if($('#nickname').val()==''){
					plus.nativeUI.toast('请输入昵称！');
					return;
				}
				var tele = window.location.href.split("=")[1];
				$.ajax({
					type:"post",
					url:servicePath+"sechandcar/app/users/shcUser/uoploadNickname",
					data:{telephone:tele,nickname:$('#nickname').val()},
					async:false,
					success:function(data){
						if(data=="success"){
							window.location.href="index1.html";
						}
					}
				});
			})
		</script>
	</body>
</html>
